package com.ruoyi.market.domain;

import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 营销任务对象 market_task
 *
 * @author ruoyi
 * @date 2023-01-26
 */
@Setter@Getter
@TableName("market_task")
public class MarketTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /** 任务名称 */
    @Excel(name = "任务名称")
    @TableField("name")
    private String name;

    /** 可完成功能 */
    @Excel(name = "可完成功能")
    @TableField("achievable")
    private Integer achievable;

    /** 参与受限 */
    @Excel(name = "参与受限")
    @TableField("people_limit")
    private Integer peopleLimit;

    /** 次数限制 */
    @Excel(name = "次数限制")
    @TableField("number_limit")
    private Integer numberLimit;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("achievable", getAchievable())
            .append("peopleLimit", getPeopleLimit())
            .append("numberLimit", getNumberLimit())
            .toString();
    }
}
